Skip to main content

enabled

Type​

property

Summary​

Specifies that an object is active and responds to user action.

Syntax​

set the enabled of <object> to {true | false}

Description​

Use the enabled property to find out whether a control can respond to mouse clicks or keyboard presses.

The enabled property of an object is the logical inverse of that object's disabled property. When the enabled is true, the disabled is false, and vice versa.

An enabled control can receive the focus.

Setting a group's enabled property sets the enabled of each control in the group.

You can set the enabled property of a menu by specifying the menu's name or number. An enabled menu can be displayed, and menu items can be individually enabled or disabled using the enable and disable commands.

Examples​

set the enabled of card button "Work Miracles" to true
set the enabled of menu "Window" to false

Value​

NameTypeDescription

value

bool

The enabled of a control is true or false. By default, the enabled property of a newly created control is true.

glossary: object, property, command, menu item, menu

keyword: control, menu

property: disabled

command: enable, disable, enable menu, group

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?